<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddCleanPlan.ascx.vb"
    Inherits="WebForm_ManageWorkContent_AddCleanPlan" %>
<%@ Register Assembly="CheckBoxRequireControl" Namespace="CheckBoxRequireControl"
    TagPrefix="cc1" %>
<%@ Register Src="~/WebForm/CommonControl/AnnualControl.ascx" TagName="AnnualControl"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/ManageWorkContent/vSelfRegionType.ascx" TagName="SelfRegionType"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/SearchControl/SearchInternalUserControl.ascx" TagName="SearchEmployeeControl"
    TagPrefix="My" %>
<%--<%@ Register Src="~/WebForm/ManageWorkContent/SearchEmployeeControl.ascx" TagName="SearchEmployeeControl"
    TagPrefix="My" %>  
--%>
<%@ Reference Control="~/WebForm/CommonControl/CalendarTextBox.ascx" %>
<%@ Reference Control="~/WebForm/ManageWorkContent/SelfRegionType.ascx" %>
<My:MyFormView ID="fv" runat="server" DataNames="PersonInCharge">
    <ItemTemplate>
        <table>
            <tr>
                <td colspan="2" class="Section">
                    <asp:Label ID="lblBasicInfo" runat="server" meta:resourcekey="lblBasicInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblYearPlan" runat="server" meta:resourcekey="lblYearPlan"></asp:Label>
                </td>
                <td align="left">
                    <My:AnnualControl ID="AnnualControl1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPlanType" runat="server" meta:resourcekey="lblPlanType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlPlanType" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPlanName" runat="server" meta:resourcekey="lblPlanName"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtPlanName" MaxLength="50" Width="400" runat="server" Text='<%#Bind("PlanName") %>'></asp:TextBox>
                    <asp:CheckBox ID="chkPublic" runat="server" meta:resourcekey="chkPublic" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblDateSpan" runat="server" meta:resourcekey="lblDateSpan"></asp:Label>
                </td>
                <td align="left">
                    <My:CalendarTextBox ID="txtStartDate" runat="server" Text='<%#Bind("StartDate") %>' />
                    ~
                    <My:CalendarTextBox ID="txtEndDate" runat="server" Text='<%#Bind("EndDate") %>' />
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganizationID" runat="server" meta:resourcekey="lblOrganizationID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOrganizationName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPersonInCharge" runat="server" meta:resourcekey="lblPersonInCharge"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPersonInCharge" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganizationTel" runat="server" meta:resourcekey="lblOrganizationTel"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOrganizationTel" runat="server"></asp:TextBox>
                </td>
            </tr>                        
            <tr>
                <td align="right">
                    <asp:Label ID="lblRegionType" runat="server" meta:resourcekey="lblRegionType"></asp:Label>
                </td>
                <td align="right">
                    <asp:Panel ID="pnlSelfRegionType" runat="server" Enabled="false">
                        <My:SelfRegionType ID="SelfRegionType1" runat="server" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocation"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtLocation" MaxLength="150" Width="400" Text='<%#Bind("Location") %>'
                        runat="server" TextMode="MultiLine" Rows="4"></asp:TextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <EditItemTemplate>
        <table>
            <tr>
                <td colspan="2" class="Section">
                    <asp:Label ID="lblBasicInfo" runat="server" meta:resourcekey="lblBasicInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblYearPlan" runat="server" meta:resourcekey="lblYearPlan"></asp:Label>
                </td>
                <td align="left">
                    <My:AnnualControl ID="AnnualControl1" runat="server" Anaual='<%#Bind("Year") %>' />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPlanType" runat="server" meta:resourcekey="lblPlanType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlPlanType" runat="server"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" meta:resourcekey="rfvPlanType"
                    runat="server" ControlToValidate="ddlPlanType" Display="None" SetFocusOnError="True" 
                    ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPlanName" runat="server" meta:resourcekey="lblPlanName"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtPlanName" MaxLength="50" Width="400" runat="server" Text='<%#Bind("PlanName") %>'></asp:TextBox>
                    
                    <asp:CheckBox ID="chkPublic" runat="server" meta:resourcekey="chkPublic" />
                </td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" meta:resourcekey="rfvPlanName"
                    runat="server" ControlToValidate="txtPlanName" Display="None" SetFocusOnError="True"
                    ValidationGroup="vInsert"></asp:RequiredFieldValidator></tr>
             <tr>
                <td align="right">
                    <asp:Label ID="lblDateSpan" runat="server" meta:resourcekey="lblDateSpan"></asp:Label>
                </td>
                <td align="left">
                    <My:CalendarTextBox ID="txtStartDate" runat="server" Text='<%#Bind("StartDate") %>' />
                    <asp:CompareValidator ID="chk_txtStartDate" runat="server" ControlToValidate="txtStartDate"
                        Display="None" ValidationGroup="vInsert" meta:resourcekey="chk_txtStartDate2"
                        Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
                    ~
                    <My:CalendarTextBox ID="txtEndDate" runat="server" Text='<%#Bind("EndDate") %>' />
                    <asp:CompareValidator ID="chk_txtEndDate" runat="server" ControlToValidate="txtEndDate"
                        Display="None" ValidationGroup="vInsert" meta:resourcekey="chk_txtEndDate2" Operator="DataTypeCheck"
                        Type="Date"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganizationID" runat="server" meta:resourcekey="lblOrganizationID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOrganizationName" runat="server" Text='<%#Bind("OrganizationName") %>' Enabled="false"></asp:TextBox>
                    <asp:Button ID="btSelect" runat="server" meta:resourcekey="btSelect" CommandName="GetData" />
                    <asp:RequiredFieldValidator ID="vadOrganizationName" meta:resourcekey="rfvOrganizationName" runat="server" ControlToValidate="txtOrganizationName" Display="None" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPersonInCharge" runat="server" meta:resourcekey="lblPersonInCharge"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPersonInCharge" runat="server" Text='<%#Bind("PersonInCharge") %>' Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganizationTel" runat="server" meta:resourcekey="lblOrganizationTel"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOrganizationTel" runat="server" Text='<%#Bind("OrganizationTel") %>' Enabled="false"></asp:TextBox>
                </td>
            </tr>                       
            <tr>
                <td align="right">
                    <asp:Label ID="lblRegionType" runat="server" meta:resourcekey="lblRegionType"></asp:Label>
                </td>
                <td>
                    <My:SelfRegionType ID="SelfRegionType1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocation"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtLocation" MaxLength="150" Width="400" Text='<%#Bind("Location") %>'
                        runat="server" TextMode="MultiLine" Rows="4"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" meta:resourcekey="rfvLocation"
                        runat="server" ControlToValidate="txtLocation" Display="None" SetFocusOnError="True"
                        ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr> 
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td align="right">
                </td>
                <td align="left">
                    <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CommandName="btnSave"
                        ValidationGroup="vInsert" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnSave"
                        meta:resourcekey="cbSave">
                    </ajaxToolkit:ConfirmButtonExtender>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" DisplayMode="BulletList" ValidationGroup="vInsert" />
    </EditItemTemplate>
</My:MyFormView>
<My:SearchEmployeeControl ID="SearchEmployeeControl1" runat="server" />
